import service from '@/utils/request'

const login = (data = {}) => {
  return service({
    url: '/admin/login/douserLogin',
    method: 'post',
    data: data
  })
}

const logout = () => {
  return service({
    url: '/admin/login/logout',
    method: 'post'
  })
}

export { login, logout }
